home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: A question for the C
- Date: 15 Feb 1996 17:28:59 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4fvqgr$qoe@gail.ripco.com>
- NNTP-Posting-Host: golden.ripco.com
-
- dwoo@jupiter.sun.csd.unb.ca (Dennis K. C. Woo)
- in <4fnelv$dvp@sol.sun.csd.unb.ca> asks:
-
-
- >In the following code fragment, a sturcture is defined as COMPLEX. The
- >argument var1 is defined as a 32-bit word. The lines that marked as
- >"offending line" caused the Watcom compiler to complain that "expression
- >for '->' must be a pointer to structure or union". However, the variable
- >v1 is already declared as a pointer to COMPLEX...why is wrong? I had
-
- v1 may be a COMPLEX *, but v1[i] isn't. v1[i] is a COMPLEX, so
- v1[i].member_name is the form to use.
-
- BTW, if you actually want to post to c.l.c, don't post code
- which requires people trying to help you to
- 1) strip or convert your C++ comments. If you must use them, then post
- to c.l.c++
- 2) #define away non-C non-keywords such as `FAR', `PASCAL', `DWORD', and
- `MK_FP32'. If these are related to your problem, then
- comp.os.msdos.programmer is more appropriate than c.l.c.
-
- If your problem requires that you #include <windows.h>, you know that
- a Windoze newsgroup is more appropriate than c.l.c.
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-